#!/bin/bash
curl 'https://oapi.dingtalk.com/robot/send?access_token=你自己的钉钉群自定义机器人token' \
-H 'Content-Type: application/json' \
-d @- <<EOF
{
    "at": {
        "atMobiles":[
            "$1"
        ],
        "atUserIds":[
            "$1"
        ],
        "isAtAll": false
    },
    "text": {
        "content":"$2"
    },
    "msgtype":"text"
}
EOF
